﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="signup.aspx.cs" Inherits="UI_signup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" style="border:6px solid #ababab;" cellpadding="3">
    <tr>
        <td class="arial_big_heading_font_green2" align="left"><h3>Welcome! Create your FREE account</h3> </td>
    </tr>
    <tr>
        <td class="labelstyleBold" align="left" valign="bottom"><br />Choose a nick name (will be displayed on your profile) </td>
    </tr>
    <tr>
        <td align="left" valign="top">
            <asp:TextBox ID="txtUsername" Width="170px" runat="server" ValidationGroup="FormSignup"></asp:TextBox>
            
            <asp:RequiredFieldValidator ID="rfvUsername" runat="server" ValidationGroup="FormSignup" 
                ControlToValidate="txtUsername" ErrorMessage="Nick Name must not empty">*</asp:RequiredFieldValidator>
            
        </td>
    </tr>
    <tr>
        <td class="labelstyleBold" align="left" valign="bottom"><br />Your email address </td>
    </tr>
    <tr>
        <td align="left" valign="top"><asp:TextBox ID="txtEmail" Width="170px" runat="server" ValidationGroup="FormSignup"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ValidationGroup="FormSignup" 
                ControlToValidate="txtEmail" ErrorMessage="E-mail address must not empty">*</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="Invalid e-mail address" ValidationGroup="FormSignup" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
        </td>
    </tr>
    <%--<tr>
        <td class="labelstyleBold" align="left" valign="bottom"><br />Choose a password   </td>
    </tr>
    <tr>
        <td align="left" valign="top"><asp:TextBox ID="txtPassword" Width="170px" TextMode="Password" runat="server" ValidationGroup="FormSignup"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvpass" runat="server" ValidationGroup="FormSignup" 
                ControlToValidate="txtPassword" ErrorMessage="Password must not empty">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="labelstyleBold" align="left" valign="bottom"><br />Re-type your password </td>
    </tr>
    <tr>
        <td align="left" valign="top"><asp:TextBox ID="txtRepassword" Width="170px" ValidationGroup="FormSignup" TextMode="Password" runat="server"></asp:TextBox>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ValidationGroup="FormSignup" 
                ControlToCompare="txtPassword" ControlToValidate="txtRepassword" 
                ErrorMessage="Password and re-type Password does not match..">*</asp:CompareValidator>
        </td>
    </tr>--%>

    <tr>
        <td align="left"><br /><asp:CheckBox ID="chkterms" CssClass="labelstyle" Text="I have read, and agree to the terms of service" runat="server"></asp:CheckBox><br /></td>
    </tr>
    <tr>
        <td align="left"><asp:Button ID="btnSignup" Text="Create Account" runat="server" ValidationGroup="FormSignup" CssClass="form_btn" OnClick="btnSignup_click" />
            <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="FormSignup" runat="server" 
                Font-Size="11px" />
        </td>
    </tr>
    <tr>
        <td align="left"><asp:Label ID="lblSignupMsg" runat="server" ForeColor="Red" Font-Size="12px"></asp:Label> </td>
    </tr>
</table>
</asp:Content>

